package com.ruoyi.project.module.application.controller;

import com.ruoyi.project.module.application.service.IApplicationService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Controller
public class ApplicationDetailController {

    private String prefix = "module/applicationProperty";

    @Autowired
    private IApplicationService applicationService;

    /**
     * 查询配置组属性列表
     */
    @RequiresPermissions("module:applicationProperty:list")
    @GetMapping("/module/application/detail/{uniqueId}")
    public String detail(@PathVariable("uniqueId") Long uniqueId, ModelMap mmap)
    {
        mmap.put("configApplication", applicationService.selectApplicationById(uniqueId));
//        mmap.put("dictList", groupPropertyService.selectDictTypeAll());
        return prefix + "/detail";
    }
}
